﻿<%@ Page Title="Register" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="UbaTic.Ui.Web.Account.Register" %>

<%@ MasterType VirtualPath="~/Main.Master" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:Panel ID="pnlRegister" runat="server" CssClass="accountInfo">
        <h2>
            Cree una nueva cuenta
        </h2>
        <p>
            Complete el siguiente formulario para crear una nueva cuenta.
        </p>
        <span class="failureNotification">
            <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
        </span>
        <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
            ValidationGroup="RegisterUserValidationGroup" />
        <fieldset class="register">
            <legend>Informacion de Cuenta</legend>
            <p>
                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                <asp:TextBox ID="Email" runat="server" CssClass="textEntry"></asp:TextBox>
                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                    CssClass="failureNotification" ErrorMessage="E-mail es requerido." ToolTip="E-mail es requerido."
                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:Label ID="FirstNameLabel" runat="server" AssociatedControlID="FirstName">Nombre:</asp:Label>
                <asp:TextBox ID="FirstName" runat="server" CssClass="textEntry"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="FirstName"
                    CssClass="failureNotification" ErrorMessage="Nombre es requerido." ToolTip="Nombre es requerido."
                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:Label ID="LastNameLabel" runat="server" AssociatedControlID="LastName">Apellido:</asp:Label>
                <asp:TextBox ID="LastName" runat="server" CssClass="textEntry"></asp:TextBox>
                <asp:RequiredFieldValidator ID="LastNameRequired" runat="server" ControlToValidate="LastName"
                    CssClass="failureNotification" ErrorMessage="Apellido es requerido." ToolTip="Apellido es requerido."
                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                    CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password es requerido."
                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Confirmar Password:</asp:Label>
                <asp:TextBox ID="ConfirmPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ControlToValidate="ConfirmPassword" CssClass="failureNotification"
                    Display="Dynamic" ErrorMessage="Confirmar Password es requerido." ID="ConfirmPasswordRequired"
                    runat="server" ToolTip="Confirmar Password es requerido." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                    ControlToValidate="ConfirmPassword" CssClass="failureNotification" Display="Dynamic"
                    ErrorMessage="The Password and Confirmation Password must match." ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator>
            </p>
            <p>
                <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">Pregunta secreta:</asp:Label>
                <asp:TextBox ID="Question" runat="server" CssClass="textEntry"></asp:TextBox>
                <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" ControlToValidate="Question"
                    ErrorMessage="Pregunta secreta es requerida." ToolTip="Pregunta secreta es requerida."
                    CssClass="failureNotification" Display="Dynamic" ValidationGroup="RegisterUserValidationGroup"
                    InitialValue="Select a Question">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">Respuesta secreta:</asp:Label>
                <asp:TextBox ID="Answer" runat="server" CssClass="textEntry"></asp:TextBox>
                <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" ControlToValidate="Answer"
                    CssClass="failureNotification" Display="Dynamic" ErrorMessage="Respuesta secreta es requerida."
                    ToolTip="Respuesta secreta." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
            </p>
        </fieldset>
        <p class="submitButton">
            <asp:Button ID="CreateUserButton" runat="server" CommandName="MoveNext" Text="Crear Usuario"
                ValidationGroup="RegisterUserValidationGroup" OnClick="CreateUserButton_Click" />
        </p>
    </asp:Panel>
</asp:Content>
